home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr38 / pock30.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1993-06-05  |  3KB  |  90 lines

  1. echo off
  2. cls
  3. if not "%1"=="" goto ok
  4. echo.
  5. echo  PocketD installation.
  6. echo.
  7. echo  USAGE:    INSTALL pathname
  8. echo  where "pathname" is the drive or directory to install PocketD (can be shared)
  9. echo.
  10. echo  e.g. INSTALL C:
  11. echo       INSTALL C:\POCKETD\
  12. echo       INSTALL \UTILS\        (Sharing with other utilities)
  13. echo.
  14. echo  or   INSTALL C:\POCKETD\ /u    (To un-install PocketD from directory)
  15. echo.
  16. echo  Choose where you want to install PocketD and re-run INSTALL
  17. echo.
  18. goto exit2
  19.  
  20. :ok
  21. cls
  22.  
  23. if exist install.bat goto start
  24. echo ERROR! The INSTALL program must be run from the installation drive
  25. goto exit
  26.  
  27. :start
  28. if NOT "%2"=="/u" goto inst
  29. D    /Yny/ /'//&W PocketD can be uninstalled from a directory shared with other software.// Proceed with Uninstall ?&w'
  30. if not errorlevel 2 goto exit2
  31. d    %1/:=.%1d.exe/zzh
  32. if not errorlevel 1 echo  Nothing to do...
  33. goto exit
  34.  
  35. :inst
  36. d    /FK:=.d.exe[The complete installation requires $S$B$B$Bk (only D.EXE (31k) is essential).]?
  37. d    /Yny /'/&WPocketD Installation&w//Install (31k) &WD.EXE&w executable program ? (Y@/N)'
  38. if not errorlevel 1 goto abort
  39. if not errorlevel 2 goto help1
  40. d    d.exe /ccfq %1
  41. :help1
  42. d    /Yny /'/Install (37k) &WMENUD.EXE&w executable program ? (Y@/N)'
  43. if not errorlevel 1 goto abort
  44. if not errorlevel 2 goto help1b
  45. d    menud.exe /ccfq %1
  46. :help1b
  47. d    /Yny /'/Install ( 7k) &WSETCOL.EXE&w color config program ? (Y@/N)'
  48. if not errorlevel 1 goto abort
  49. if not errorlevel 2 goto help1c
  50. d    setcol.exe /ccfq %1
  51. :help1c
  52. d    /Yny /'/Install ( 2k) &WD.HLP&w on-line one-page help ? (Y@/N)'
  53. if not errorlevel 1 goto abort
  54. if not errorlevel 2 goto help2
  55. d    d.hlp /ccfq %1
  56. :help2
  57. d    /Yny /'/Install (56k) &WD.MAN&w on-line reference manual ? (Y@/N)'
  58. if not errorlevel 1 goto abort
  59. if not errorlevel 2 goto help3
  60. d    d.man /ccfq %1
  61. :help3
  62. d    /Yny /'/Install (50k) &WD.GDE&w on-line guide ? (Y@/N)'
  63. if not errorlevel 1 goto abort
  64. if not errorlevel 2 goto help4
  65. d    d.gde /ccfq %1
  66. :help4
  67. d    /Yny /'/Install ( 9k) D.EXE pre-prepared &WBAT&w Utilities ? (Y@/N)'
  68. if not errorlevel 1 goto abort
  69. if not errorlevel 2 goto help5
  70. d    .bat /- demo.bat /ccfql %1
  71. :help5
  72. d    /Yny /'/Install (12k) &WDEMO.BAT&w ? (Y@/N)'
  73. if not errorlevel 1 goto abort
  74. if not errorlevel 2 goto help5b
  75. d    demo.bat /ccfq %1
  76. :help5b
  77. d    /Yny /'/Install (29k) &WREADME&w files ? (Y@/N)'
  78. if not errorlevel 1 goto abort
  79. if not errorlevel 2 goto exit
  80. d    .DOC FILE_ID.DIZ PACKING.LST README.1ST README.D ORDER.FRM /:=.d.exe /ccfql %1
  81. goto exit
  82.  
  83. :abort
  84. echo.
  85. echo Installation Aborted...
  86. echo.
  87. :exit
  88. d    %1/:=.d.exe [// Total installation: $F files, size $S bytes, using $U bytes////][// Nothing Currently Installed////]KJ
  89. :exit2
  90.